export default Object.freeze({
  student_number: [
    { required: true, message: "请输入手机号码", trigger: "blur" },
    {
      pattern: /^1[3456789]\d{9}$/,
      message: "请输入正确的手机号码",
      trigger: "blur",
    },
  ],
  student_name: [
    { required: true, message: "请输入学生姓名", trigger: "blur" },
  ],
  student_email: [
    { required: true, message: "请输入电子邮箱", trigger: "blur" },
    {
      pattern:
        // eslint-disable-next-line max-len
        /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,
      message: "请输入正确的电子邮箱",
      trigger: "blur",
    },
  ],
  student_birthday: [
    { required: true, message: "请选择出生日期", trigger: "change" },
  ],
  student_sex: [{ required: true, message: "请选择性别", trigger: "change" }],
  student_class_id: [
    { required: true, message: "请选择所属班级", trigger: "change" },
  ],
});
